import axios from '../utils/axios'

// 认证相关API
export const authApi = {
  // 用户登录
  login(loginData) {
    return axios.post('/auth/login', loginData)
  },

  // 用户登出
  logout() {
    return axios.post('/auth/logout')
  },

  // 获取当前用户信息
  getCurrentUser() {
    return axios.get('/auth/current-user')
  },

  // 刷新Token
  refreshToken() {
    return axios.post('/auth/refresh-token')
  },

  // 修改密码
  changePassword(passwordData) {
    return axios.post('/auth/change-password', passwordData)
  }
}
